<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditBotiquinDetalleTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditBotiquinDetalleLabel_botiquinDetallePK_id}" for="botiquinDetallePK_id" />
                    <h:inputText id="botiquinDetallePK_id" value="#{botiquinDetalleController.selected.botiquinDetallePK.id}" title="#{bundle.EditBotiquinDetalleTitle_botiquinDetallePK_id}" required="true" requiredMessage="#{bundle.EditBotiquinDetalleRequiredMessage_botiquinDetallePK_id}"/>
                    <h:outputLabel value="#{bundle.EditBotiquinDetalleLabel_cantidad}" for="cantidad" />
                    <h:inputText id="cantidad" value="#{botiquinDetalleController.selected.cantidad}" title="#{bundle.EditBotiquinDetalleTitle_cantidad}" />
                    <h:outputLabel value="#{bundle.EditBotiquinDetalleLabel_descripcion}" for="descripcion" />
                    <h:inputText id="descripcion" value="#{botiquinDetalleController.selected.descripcion}" title="#{bundle.EditBotiquinDetalleTitle_descripcion}" />
                    <h:outputLabel value="#{bundle.EditBotiquinDetalleLabel_medicamento}" for="medicamento" />
                    <h:selectOneMenu id="medicamento" value="#{botiquinDetalleController.selected.medicamento}" title="#{bundle.EditBotiquinDetalleTitle_medicamento}" >
                        <f:selectItems value="#{medicamentoController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditBotiquinDetalleLabel_botiquin1}" for="botiquin1" />
                    <h:selectOneMenu id="botiquin1" value="#{botiquinDetalleController.selected.botiquin1}" title="#{bundle.EditBotiquinDetalleTitle_botiquin1}" required="true" requiredMessage="#{bundle.EditBotiquinDetalleRequiredMessage_botiquin1}">
                        <f:selectItems value="#{botiquinController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <h:commandLink action="#{botiquinDetalleController.update}" value="#{bundle.EditBotiquinDetalleSaveLink}"/>
                <br />
                <br />
                <h:link outcome="View" value="#{bundle.EditBotiquinDetalleViewLink}"/>
                <br />
                <h:commandLink action="#{botiquinDetalleController.prepareList}" value="#{bundle.EditBotiquinDetalleShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.EditBotiquinDetalleIndexLink}" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
